package com.xiaobao.campusLostFoundAfter.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

//物品基础信息
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class BaseItem {
    //物品id
    private Integer itemId;
    //物品标题
    private String itemName;
    //物品失物招领，或者寻物启事有Found,Lost
    private String itemType;
    //物品描述
    private String itemDescription;
    //物品位置
    private String itemLocation;
    //物品图片
    private String itemImage;
    //物品发布时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;
    //物品状态1待审核，2以通过，3已完成，4未通过
    private Integer status;
}
